package day04;
/*
    我国最高山峰是珠穆朗玛峰：8848m，我现在有一张足够大的纸张，
    厚度为：0.01m。请问，我折叠多少次，就可以保证厚度不低于珠穆朗玛峰的高度?

 */
public class WhileDemo1 {
    public static void main(String[] args) {
        double mHigh = 8848.000;
        double mPaperPly = 0.010;
        int times = 0;

        while(mHigh>=mPaperPly){
            times++;
            mPaperPly = mPaperPly * 2;
            System.out.println(mPaperPly);
        }
        System.out.println(times);
    }
}
